#!/usr/bin/node

const fs = require('fs'),
      log = console.log,
      dir = process.argv[2] || __dirname;


try {
  log(fs.readdirSync(dir));
} catch(err) {
  console.error(err.message);
  process.exit(1);
}
